#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2025/5/11 13:55
# @Author  : Chenmm
# @File    : home.py
# @Software: PyCharm

from fastapi import Request, APIRouter
from fastapi.responses import HTMLResponse

router = APIRouter()


@router.get("/", tags=["门户首页"], response_class=HTMLResponse)
async def home(request: Request):
    """
    门户首页
    :param request:
    :return:
    """
    return request.app.state.views.TemplateResponse("index.html", {"request": request})